<html>
  <head>
    <meta name="layout" content="main" />
    <title>Edit Employee Infomation</title>
  </head>
  <body>
    <h1>Edit Employee Infomation</h1>
  <g:form controller ="user" action="update" id="${userInstance?.id}" enctype="multipart/form-data">
    <div class="dialog">
      <table>
        <tbody>

          <tr class="prop">
            <td valign="top" class="name">
              <label for="name">Upload Photo:</label>
            </td>
            <td valign="top" class="value ${hasErrors(bean:userInstance,field:'photo','errors')}">
              <input type="file" id="photo" name="photo" value="${fieldValue(bean:userInstance,field:'photo')}"/>
            </td>
          </tr>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><input class="update" type="submit" value="Upload" /></span>
    </div>
  </g:form>
</body>
</html>
